package com.meme.editor.level;

public class AppearanceFactory 
{
	public static final String AppearanceType_Sprite2d = "sprite2d";
	public static final String AppearanceType_Background2d = "background2d";
	public static final String AppearanceType_Box2d = "box2d";
	public static final String AppearanceType_Circle = "circle";	
	public static final String AppearanceType_Line2d = "line2d";
	
	public static Appearance createAppearance (String type)
	{
		if (type.equals(AppearanceType_Sprite2d))
		{
			return new Sprite2dAppearance ();
		}
		else if (type.equals(AppearanceType_Background2d))
		{
			return new Background2dAppearance ();
		}
		else if (type.equals(AppearanceType_Box2d))
		{
			return new Box2dAppearance ();
		}
		else if (type.equals(AppearanceType_Circle))
		{
			return new CircleAppearance ();
		}
		else if (type.equals(AppearanceType_Line2d))
		{
			return new Line2dAppearance ();
		}
		
		return null;
	}
}
